import requests


class ApiIhrmLogin(object):
    def ihrm_login(self,req_data):
        res = requests.post(url="http://ihrm-java.itheima.net/api/sys/login",
                            json=req_data)
        return res

if __name__ == '__main__':
    a = ApiIhrmLogin()
    req_data = {"mobile": "13800000002", "password": "123456"}
    b = a.ihrm_login(req_data)
    print(b.json())